package com.xuehu.service.user;

import com.xuehu.pojo.User;

import java.util.List;

public interface UserService {

    public User login(String userCode, String userPassword);

    public boolean updatePassword(int id, String pwd);

    public int getUserCount(String username, int userRole);

    /**
     * 根据条件查询用户列表
     * @param queryUserName
     * @param queryUserRole
     * @return
     */
    public List<User> getUserList(String queryUserName, int queryUserRole, int currentPageNo, int pageSize);

    public boolean delUser(Integer userId);
}
